package com.rongmai.db.mapper;

import com.rongmai.db.model.Label;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 张
* @description 针对表【dic(字典)】的数据库操作Mapper
* @createDate 2023-10-09 21:09:08
* @Entity com.rongmai.db.model.Dic
*/
public interface LabelMapper {


    Integer insert(Label label);
    Label getLabelByType(String code);
    List<Label> getLabelByParentId(Integer parentId);

    List<Label> getLabelByParentId4All(Integer parentId);

    void delete(Integer id);

    Label get(Integer id);

    List<Label> getByIds(List<String> list);

    List<Label> queryByName(String queryKey);

    Label getLabelByTypeAndRole(@Param("code") String code, @Param("role") String role);
}
